<table>
   <tbody>
        <volist name="userlist" id="list">
          <tr data-id="{$list['userid']}">
            <td class="sign" axis="col6">
              <div style="width: 24px;"><i class="ico-check"></i></div>
            </td>
		 <td class="handle" >
            <div style="text-align:left;   min-width:50px !important; max-width:inherit !important;">
              <span class="btn"><em><i class="fa fa-cog"></i>设置<i class="arrow"></i></em>
              <ul>
                <li><a href="{:U('Admin/Storebossinfo/useredit',array('userid'=>$list['userid']))}">编辑角色</a></li>
                
                <if condition="$list.role eq 2">
                	<li><a onclick="show_userlist({$list['userid']})">客户列表</a></li>
                	<li><a onclick="show_transferlist({$list['userid']},'{$list.username}')">转移客户</a></li>
                </if>
                <!--<li><a href="javascript:void(0);" onclick="publicHandle('{$list.id}','del')">删除商品</a></li>-->                   
              </ul>
              </span>
            </div>
          </td>     
          
            <td align="center" axis="col0">
              <div style="width: 50px;">{$list.userid}</div>
            </td>                
			
			<td align="center" axis="col0">
              <div style="text-align: center; width: 150px;">{$list.username}</div>
            </td> 
            
            <td align="center" axis="col0">
            	<if condition="$list.role eq 2">
              		<div style="text-align: center; width: 150px; color: #FF2222;font-weight: bold;">( {$rtype[$list.role]} )</div>
             	</if>
             	<if condition="$list.role eq 1">
             		<div style="text-align: center; width: 150px;">{$rtype[$list.role]}</div>
             	</if>
            </td>
            
            <td align="center" axis="col0">
              <div style="text-align: center; width: 150px;">{$list.fullname}</div>
            </td> 
			
			<td align="center" axis="col0">
              <div style="text-align: center; width: 120px;">{$list.phone}</div>
            </td> 
			
            <td align="center" axis="col0">
              <if condition='$list.sex eq 1'>
              <div style="text-align: center; width: 50px;">男</div>
              <else />
              <div style="text-align: center; width: 50px;">女</div>
              </if>
            </td>               
              
       		<td align="center" axis="col0">
                <div style="text-align: center; width: 150px;">{$list['birthday']|date='Y-m-d H:i',###}</div>
            </td> 
            
            <td align="center" axis="col0">
                <div style="text-align: center; width: 150px;">{$list['accounts']}</div>
            </th>
            
            <td align="" class="" style="width: 100%;">
              <div>&nbsp;</div>
            </td>
          </tr>
        </volist>             
      </tbody>
    </table>
    <!--分页位置--> {$page}
	<script>
        // 点击分页触发的事件
        $(".pagination  a").click(function(){
            cur_page = $(this).data('p');
            ajax_get_table('search-form2',cur_page);
        });
		
		//显示客户列表
		function show_userlist(uid){
//			var tourls = 
			console.log('uid='+uid);
			var url = localUrl+'/index.php?m=Admin&c=Storebossinfo&a=userclient&userid='+uid+'/';
			console.log('url='+url);
	        layer.open({
	            type: 2,
	            title: '客户列表',
	            shadeClose: true,
	            shade: 0.3,
	            area: ['60%', '70%'],
	            content: url,
	        });
		}
		
		function show_transferlist(uid,username){
			var url = localUrl+'/index.php?m=Admin&c=Storebossinfo&a=transferuser&userid='+uid+'&uname='+username;
			layer.open({
	            type: 2,
	            title: '转移列表',
	            shadeClose: true,
	            shade: 0.3,
	            area: ['80%', '70%'],
	            content: url,
	       });
		}
		
    </script>